:root {
  --vs-color: #1d2129;
  --vs-bg-color: #fff;
  --vs-radius: 8px;
  --vs-font-size: 14px;
  --vs-color-primary: #11429D;
  --vs-color-danger: #f53f3f;
  --vs-color-success: #00b42a;
  --vs-color-warning: #ff7d00;
  --vs-border: 1px solid #edeef0;

  --vs-header-height: 48px;
  --vs-header-padding: 0 16px;

  --vs-body-padding: 24px 32px 32px;
  --vs-thumbnail-wrap-margin: 0 0 16px;

  --vs-footer-height: 56px;
  --vs-footer-padding: 0 16px;

  --vs-button-radius: 8px;
  --vs-button-gap-x: 16px;
  --vs-button-border-width: 1px;
  --vs-button-border-style: solid;
  --vs-button-padding-y: 7px;
  --vs-button-padding-x: 15px;
  --vs-button-icon-padding: 7px;
  --vs-button-icon-image-size: 16px;
  --vs-button-border-color-default: #dbdde2;

  --vs-point-size: 20px;
  --vs-point-font-weight: 500;
  --vs-point-border: 1px solid #f3f6ff;
}
.vs-hstack {
  display: flex;
  align-items: center;
}

.visual-shield__mask {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  user-select: none;
  .visual-shield {
    color: var(--vs-color);
    font-size: var(--vs-font-size);
    background-color: var(--vs-bg-color);
    border-radius: var(--vs-radius);
    .vs-button {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      font-weight: 400;
      line-height: 1.5715;
      white-space: nowrap;
      outline: none;
      cursor: pointer;
      box-sizing: border-box;
      appearance: none;
      user-select: none;
      transition: all 0.1s cubic-bezier(0, 0, 1, 1);
      outline: none;
      background-color: transparent;
      border-radius: var(--vs-button-radius);
      padding: var(--vs-button-padding-y) var(--vs-button-padding-x);
      border: var(--vs-button-border-width) var(--vs-button-border-style)
        var(--vs-button-border-color-default);

      & + .vs-button {
        margin-left: var(--vs-button-gap-x);
      }
      &.is-primary {
        border-color: var(--vs-color-primary);
        background-color: var(--vs-color-primary);
        color: #fff;
      }
      &[disabled] {
        cursor: not-allowed;
        opacity: 0.4;
      }
      &.no-border {
        border-color: transparent;
        background-color: transparent;
      }
      &.is-icon {
        padding: var(--vs-button-icon-padding);
        img {
          width: var(--vs-button-icon-image-size);
          height: var(--vs-button-icon-image-size);
        }
      }
    }

    &__header {
      &:extend(.vs-hstack);
      padding: var(--vs-header-padding);
      height: var(--vs-header-height);
      border-bottom: var(--vs-border);
      .vs-title {
        flex: 1 0 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
    &__body {
      padding: var(--vs-body-padding);
      .vs-thumbnail-wrap {
        &:extend(.vs-hstack);
        margin: var(--vs-thumbnail-wrap-margin);
        .vs-thumbnail {
          &.is-fallback {
            display: none;
          }
        }
        mark {
          color: var(--vs-color-danger);
          background-color: transparent;
        }
      }
      .vs-image-wrap {
        position: relative;
        min-width: 320px;
        min-height: 240px;
        display: flex;
        align-items: center;
        justify-content: center;
        .vs-fallback {
          display: none;
        }
        .vs-image {
          width: 100%;
          display: block;
          &.is-fallback {
            display: none;
            & + .vs-fallback {
              display: flex;
              flex-direction: column;
              align-items: center;
              color: #c9cdd4;
              font-size: 14px;
              font-weight: 400;
              line-height: 20px;
              padding-bottom: 36px;
            }
          }
          &.is-disabled {
            cursor: not-allowed;
          }
        }
        .vs-point {
          &:extend(.vs-hstack);
          position: absolute;
          font-style: normal;
          font-weight: var(--vs-point-font-weight);
          left: calc(var(--vs-point-x) - 10px);
          top: calc(var(--vs-point-y) - 10px);
          display: flex;
          width: var(--vs-point-size);
          height: var(--vs-point-size);
          justify-content: center;
          border-radius: var(--vs-point-size);
          border: var(--vs-point-border);
          background: var(--vs-color-primary);
          color: #fff;
          pointer-events: none;
        }
        .vs-status {
          &:extend(.vs-hstack);
          justify-content: center;
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          height: 0;
          overflow: hidden;
          background-color: rgba(0, 0, 0, 0.4);
          color: #fff;
          transition:
            height,
            opacity 0.3s ease-in-out;
          opacity: 0;
          &.is-success {
            background-color: var(--vs-color-success);
          }
          &.is-error {
            background-color: var(--vs-color-danger);
          }
          &.is-frequent {
            background-color: var(--vs-color-warning);
          }
          &.is-show {
            height: 36px;
            opacity: 1;
          }
        }
      }
    }
    &__footer {
      &:extend(.vs-hstack);
      justify-content: flex-end;
      border-top: var(--vs-border);
      height: var(--vs-footer-height);
      padding: var(--vs-footer-padding);
      &.is-start {
        justify-content: flex-start;
      }
      &.is-center {
        justify-content: center;
      }
      &.is-end {
        justify-content: flex-end;
      }
    }
  }

  .vs-loading-warpper {
    width: 100%;
    position: relative;
    overflow: hidden;
    .loading-content {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.4);
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      color: #fff;
      .loading-icon {
        margin-top: 8px;
        animation: rotate 1s linear infinite;
      }
    }
    @keyframes rotate {
      0% {
        transform: rotate(0deg);
      }
      100% {
        transform: rotate(360deg);
      }
    }
  }
}
